Params_pre = defaultParamsPre();
Params_pre.img2vecFnc = 'featuresSimple';
Params_pre.elipse = true;
Params_pre.usePCA = true;
Params_pre.nPCComponents = 25;
Params_pre.rotate = false;
Params_pre.center = false; 

Params_pre(2) = defaultParamsPre();
Params_pre(2).img2vecFnc = 'featuresDCT';
Params_pre(2).elipse = true;
Params_pre(2).usePCA = true;
Params_pre(2).nPCComponents = 25;
Params_pre(2).trustVolume = 1; 

Params_pre(3) = defaultParamsPre();
Params_pre(3).img2vecFnc = 'featuresPseudoZernike';
Params_pre(3).img2vecFncArgs = [2 7];
Params_pre(3).elipse = true;
Params_pre(3).usePCA = false;
Params_pre(3).trustVolume = 0.5;

Params_nn = defaultParamsNN();
Params_nn.eg = 2;
Params_nn.display = 500;

Persons = 2:40;
runFR(Params_pre, Params_nn, Persons);
writeNumberErrors(Persons)

me = mfilename;
for nPersons=Persons;
    load(['./inputs/' int2str(nPersons) '/errors' int2str(nPersons) '.mat'],'errorsIn');
    toDir = [ './tests/' me '/' int2str(nPersons)];
    mkdir(toDir);
    save([ toDir '/errors' int2str(nPersons) '.mat'],'errorsIn');
end

